package com.bf.electroplating.pojo.enums;

import lombok.Getter;

@Getter
public enum EnvironmentalFacilityTypeEnum {

    FQ("0", "废气处理设施"),
    FS("1", "废水处理设施");

    private final String code;
    private final String desc;

    private EnvironmentalFacilityTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getDesc(String code) {
        for (EnvironmentalFacilityTypeEnum item : EnvironmentalFacilityTypeEnum.values()) {
            if (item.getCode().equals(code)) {
                return item.getDesc();
            }
        }
        return null;
    }

}
